<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数字属性</title>
</head>
<body>
<h2>POSITIVE_INFINITY</h2>
<p>无穷大（溢出时返回）。返回INFINITY</p>

<p id="demo"></p>
<script>
  let x=1/0;  //或定义为 let x = Number.POSITIVE_INFINITY; 结果一致
  document.getElementById("demo").innerHTML=x;
</script>
</body>
</html>


<!--
返回结果：Infinity
-->